package com.hoshiicloud.user.service.visitors;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import com.hoshiicloud.common.query.OmnipotentWrapper;
import com.hoshiicloud.user.entity.visitors.Visitors;
import org.springframework.web.bind.annotation.RequestBody;

import java.util.List;

/**
 * @Author:campchen
 * @Date:Created in 下午 02:23 2019/9/10
 * @PACKAGENAME com.hoshiicloud.user.service.visitors
 * @Description
 */
public interface IVisitorsService extends IService<Visitors> {
    Visitors getById(Long id);

    // Visitors getByOrgcode(String orgcode);

    String insert(Visitors entity);

    boolean updateById(Visitors entity);

    boolean deleteById(long id);

    // List<Visitors> getByIds(List<Long> ids, String key);

    IPage<Visitors> getPage(IPage<Visitors> page, QueryWrapper<Visitors> queryWrapper, String key);

    /**
     * 批量查询访客数信息
     */
    List<Visitors> queryBatch(List<OmnipotentWrapper> param);
}

